/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ourMessage;

/**
 *
 * @author tchordja
 */


public class Text extends Message{
	
	private static final long serialVersionUID = 20142015L;	
	private String text;
        private boolean isPrivate;
	
	public Text(String username, String text,boolean isPrivate) {
		super(username);
		this.text = text;
                 this.isPrivate = isPrivate;
	}

	public String getText() {
		return text;
	}


	public void setText(String text) {
		this.text = text;
	}
        public boolean isPrivate() {
                return isPrivate;
        }
        
        public void setIsPrivate(boolean isPrivate) {
                this.isPrivate = isPrivate;
        }
	
	@Override
	public String toString() {
		return "Text= " + text +"isPrivate="+isPrivate ;
	}
	
        public String getlogin() {
        return this.login;
    }
}
